<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="./bmob.2.2.5.js"></script>
    <script>
        Bmob.initialize("b25e6d18ad16a138", "wwj_SQ");
        Bmob.debug(true)


        // 注册
        // let params = {
        //     username: 'wuweijun',
        //     password: 'wuweijun',
        //     email: 'wuweijun@bmob.cn',
        //     phone: '11111111111',
        // }
        // Bmob.User.register(params).then(res => {
        //     console.log(res)
        // }).catch(err => {
        //     console.log(err)
        // });

        // 登录
        Bmob.User.login('wuweijun', 'wuweijun').then(res => {
            console.log(res)
        }).catch(err => {
            console.log(err)
        });
    </script>
</body>

</html>